# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


# class ScrapyShopeeItem(scrapy.Item):
#     # define the fields for your item here like:
#     # name = scrapy.Field()
#     pass

class JdItem(scrapy.Item):
    """商品信息"""
    title = scrapy.Field()  # 标题
    price = scrapy.Field()  # 价格
    sku_id = scrapy.Field()  # 商品id
    url = scrapy.Field()  # 商品链接
    info = scrapy.Field()  # 评论
    image = scrapy.Field()  # 图片


class CommentItem(scrapy.Item):
    """
    评论
    """
    # '留言时间', '评分', '回复数', '点赞数', '图片数', '评论内容'
    content = scrapy.Field()
    comment_time = scrapy.Field()
    reply_count = scrapy.Field()
    score = scrapy.Field()
    vote_count = scrapy.Field()
    image_count = scrapy.Field()
